package com.lvcoding.shizhan.common.annotation;


import com.lvcoding.shizhan.common.component.CustomSecurityBeanDefinitionRegistrar;
import org.springframework.context.annotation.Import;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

import java.lang.annotation.*;

/**
 * 开启资源服务
 *
 * @author wuyanshen
 */
@Documented
@Inherited
@EnableResourceServer
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@EnableGlobalMethodSecurity(prePostEnabled = true)
@Import({CustomSecurityBeanDefinitionRegistrar.class})
public @interface EnableCustomResourceServer {
}
